package com.waijiaojun.tpo.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.waijiaojun.tpo.entity.PartOfSpeech;
import com.waijiaojun.tpo.repository.PartOfSpeechDao;

@Service
public class PartOfSpeechService{

    @Resource
    private PartOfSpeechDao partOfSpeechDao;

    public int insert(PartOfSpeech pojo){
        return partOfSpeechDao.insert(pojo);
    }

    public int insertSelective(PartOfSpeech pojo){
        return partOfSpeechDao.insertSelective(pojo);
    }

    public int insertList(List<PartOfSpeech> pojos){
        return partOfSpeechDao.insertList(pojos);
    }

    public int update(PartOfSpeech pojo){
        return partOfSpeechDao.update(pojo);
    }
}
